export default{
	namespaced: true,
	state: {
		unreadMsgCount:0,
		unreadMsgList:null,
		friendList:null,
		meInfo:null,
		historyMsgList:{},
		chatWindowsId:0,
    winFocus:1,
		chatTo:{}

	},
	mutations: {
		setUnreadMsgCount(state,num){
			state.unreadMsgCount = num;
		},
		setUnreadMsgList(state,msgs){
			state.unreadMsgList = msgs;
		},
		setfriendList(state,friends){
			state.friendList = friends;
		},
		setMeInfo(state,meinfo){
			state.meInfo = meinfo;
		},
		setHistoryMsgList(state,msgs){
			state.historyMsgList = msgs;
		},
		setChatWindowsId(state,id)
		{
			state.chatWindowsId = id;
		},
		setChatTo(state,to){
			state.chatTo=to;
		},
    setWinFocus(state,focus){
		  state.winFocus=focus;
    }
	},
	actions: {

	}
}
